<!DOCTYPE HTML>
<html>

<head>
    <title>
        订单邮费对账</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../../../assets/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="../../../assets/css/bui-min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/css/page-min.css" rel="stylesheet" type="text/css" />
    <link href="../../../assets/css/prettify.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div class="container">
        <div class="detail-page">
            <h3>订单邮费对账</h3>
            <hr>
            <div class="detail-section">
                <div class="detail-row">
                    <form id="" class="form-horizontal well">
                        <div class="row ">
                            <div class="control-group span13">
                                <label class="control-label first">下单时间:</label>
                                <div class="controls">
                                    <input type="text" class="calendar input-small"><span> - </span>
                                    <input type="text" class="calendar input-small"><span> </span>
                                </div>
                                <div class="controls">
                                    <span class="control-text"><a href="">［近一个月］</a> <a href="">［近三个月］</a></span>
                                </div>
                            </div>
                            <div class="control-group span8">
                                <label class="control-label">供应商:</label>
                                <div class="controls">
                                    <input name="sid" type="text" class="control-text">
                                </div>
                            </div>
                            <div class="control-group span8">
                                <label class="control-label"> 订单号:</label>
                                <div class="controls">
                                    <input name="sid" type="text" class="control-text">
                                </div>
                            </div>
                            <div class="control-group span2 pull-right">
                                <button type="submit" class="button  jx-button">搜索</button>
                            </div>
                        </div>
                    </form>
                    <div class="grid-header-title"><span class="ml-10"> 邮费总计：<strong>1071212.94元</strong> </span>  </div>
                    <div id="grid"></div>
                </div>
                <!-- 表格 start-->
                <!--   <div id="grid"></div> -->
                <!-- 表格 end-->
            </div>
        </div>
    </div>
    </div>
    <script type="text/javascript" src="../../../assets/js/jquery-1.8.1.min.js"></script>
    <script type="text/javascript" src="../../../assets/js/bui-min.js"></script>
    <script type="text/javascript" src="../../../assets/js/config-min.js"></script>
    <script type="text/javascript">
    BUI.use('common/page');
    </script>
    <!-- script start -->
    <script>
    BUI.use(['bui/grid', 'bui/data', 'bui/calendar', 'common/search'], function(Grid, Data, Calendar, Search) {
        var Grid = Grid,
            Store = Data.Store,
            columns = [{
                title: '订单号',
                dataIndex: 'a',
                elCls: 'center', //居中
                width: 200
            }, {
                title: '下单时间',
                elCls: 'center',
                dataIndex: 'b',
                width: 200
            }, {
                title: '发货时间',
                elCls: 'center',
                dataIndex: 'c',
                width: 200
            }, {
                title: '供应商',
                elCls: 'center',
                dataIndex: 'd',
                width: 150
            }, {
                title: '收货地址',
                elCls: 'center',
                dataIndex: 'e',
                width: 300
            }, {
                title: '快递公司',
                dataIndex: 'f',
                elCls: 'center',
                width: 100
            }, {
                title: '快递单号',
                dataIndex: 'g',
                elCls: 'center',
                width: 200
            }, {
                title: '运费',
                dataIndex: 'h',
                elCls: 'center',
                width: 200
            } ],
            data = [{
                a: '468468146',
                b: '2016-03-14 11:11:11',
                c: '2016-03-14 12:11:11',
                d: '激想',
                e: '上海上海市浦东新区金藏路351号33幢201室',
                f: '顺丰速递',
                g: ' ',
                h: ' ',
            },{
                a: '468468146',
                b: '2016-03-14 11:11:11',
                c: '2016-03-14 12:11:11',
                d: '激想',
                e: '上海上海市浦东新区金藏路351号33幢201室',
                f: '顺丰速递',
                g: ' ',
                h: ' ',
            }];
        var datepicker = new Calendar.DatePicker({
            trigger: '.calendar',
            autoRender: true
        });
        var store = new Store({ //初始化数据
                data: data,
                pageSize: 2 // 配置分页数目
            }),
            grid = new Grid.Grid({
                render: '#grid',
                elCls: 'small-bui-grid-table',
                columns: columns,
                tbar: {
                    elCls: 'pull-right mb-10',
                    items: [{
                        btnCls: 'button',
                        text: '下载对账列表',
                        listeners: {
                            'click': ''
                        }
                    }]
                },
                bbar: {
                    // pagingBar:表明包含分页栏
                    pagingBar: true
                },
                store: store
            });

        grid.render();
    });
    </script>
    <!-- script end -->

    <body>

</html>
